/*
 练习使用array对象:
 创建: std::array<TYPE, 100> array;
*/
#include <iostream>
#include <array>
#include <string>
#define Num 4   
void input(std::array<std::string, Num> *season);
void output(std::array<std::string, Num> season);

int main()
{
    std::array<std::string, Num> seasons;
    input(&seasons);
    output(seasons);

    return 0;
}

void input(std::array<std::string, Num> *seasons) {
    using namespace std;
    for (size_t i = 0; i < Num; i++)
    {
        cout << "Please input the season:" << endl;
        string str;
        cin >> str;
        (*seasons)[i] = str;
    }
}

void output(std::array<std::string, Num> seasons) {
    using namespace std;
    for (size_t i = 0; i < Num; i++)
    {
        string str = seasons[i];
        cout << "the stri is : " << str << endl;
    }
}
